#ifndef _WIDGET_COLOR_H_
#define _WIDGET_COLOR_H_

#include <QtGUI/QWidget>

class WidgetColor : public QWidget
{

	Q_OBJECT

public:

	WidgetColor(QWidget* a_Parent = 0, Qt::WFlags a_Flags = 0);
	~WidgetColor();

	void Pick(bool a_Side);

	QColor GetColorMin();
	QColor GetColorMax();
	void SetColorMin(QColor a_Color);
	void SetColorMax(QColor a_Color);

private:

	QColor m_Min, m_Max;

	void mousePressEvent(QMouseEvent * a_Event);
	void paintEvent(QPaintEvent* a_Event);

}; // class WidgetColor

#endif